package com.cy.pj.sys.dao;

import com.cy.pj.sys.pojo.LeaveDetail;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface LeaveDetailsDao {
    /**
     * 新增一条审批详情记录
     *
     * @param leaveDetail
     */
    void insertLeaveDetail(LeaveDetail leaveDetail);

    /**
     * 更新指定审批详情
     *
     * @param approvalId,status
     */
    void updateLeaveDetail(Long approvalId, Integer status);

    /**
     * 基于id查询审批详情记录
     *
     * @param approvalId
     * @return
     */
    LeaveDetail selectLeaveDetail(Long approvalId);
}
